@import '../../../index.scss';

page {
  background-color: #fff;
}

.container {
  padding-bottom: 80rpx;

  .detail {
    padding: 20rpx;

    .info {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .left {
        display: flex;

        .avater {
          width: 80rpx;
          height: 80rpx;
          border-radius: 100%;
          overflow: hidden;
          margin-right: 20rpx;

          image {
            width: 100%;
            height: 100%;
          }
        }

        .user {
          display: flex;
          flex-direction: column;
          justify-content: space-around;

          .name {
            display: flex;
            align-items: center;
            font-size: 28rpx;
            font-weight: bold;

            .lv {
              height: 30rpx;
              margin-left: 10rpx;
            }
          }

          .time {
            font-size: 20rpx;
            color: #999;
          }
        }
      }

      .right {
        display: flex;
        align-items: center;

        .attention {
          font-size: 24rpx;
          color: $primary-color;
          background-color: #000;
          padding: 8rpx 30rpx;
          margin-right: 10rpx;
          border-radius: 8rpx;
          transition: background-color .4s;

          &.active {
            background-color: #f8f8f8;
            // color: #999; 
          }
        }

        .more {
          height: 36rpx;
          opacity: .2;
        }
      }
    }

    .imageText {
      .topic {
        display: flex;
        flex-wrap: wrap;
        padding-top: 20rpx;
        margin-bottom: -10rpx;

        .tip {
          font-size: 24rpx;
          margin-right: 14rpx;
          padding: 14rpx 16rpx;
          background-color: #ececec;
          border-radius: 10rpx;
          display: flex;
          color: #555;
          align-items: center;
          line-height: 0;
          margin-bottom: 10rpx;

          .icon {
            height: 20rpx;
            margin-right: 6rpx;
          }
        }
      }

      .video {

        .player {
          margin: 20rpx 0;
          box-sizing: border-box;
          height: 400rpx;
          background-color: #eee;
          border-radius: 14rpx;
          overflow: hidden;

          position: relative;

          video {
            width: 100%;
            height: 100%;
          }

          .cover {
            width: 100%;
            height: 100%;

            &::before {
              content: "";
              width: 100%;
              height: 100%;
              background-color: #fff;
              position: absolute;
              opacity: .1;
            }
          }


          .icon {
            width: 100rpx;
            height: 100rpx;
            position: absolute;
            z-index: 11;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            opacity: .4;
          }
        }

        .desc {
          font-size: 28rpx;
          color: #000;
          line-height: 1.6em;
          margin-bottom: 10rpx;
        }
      }

      .content {
        padding: 20rpx 0;
        padding-bottom: 0;

        .desc {
          font-size: 28rpx;
          color: #000;
          white-space: pre-wrap;
        }

        .photoAlbum {
          // display: flex;
          // flex-wrap: wrap;
          // justify-content: space-between;
          // margin-top: 20rpx;
          padding: 20rpx 0;
          display: grid;
          grid-template-columns: 1fr 1fr 1fr;
          gap: 14rpx;

          .photo {
            // flex-basis: calc(33.33% - 10rpx);
            width: 100%;
            padding-bottom: 100%;
            position: relative;
            background-color: #fff;
            border-radius: 14rpx;
            overflow: hidden;

            image {
              position: absolute;
              width: 100%;
              height: 100%;
              top: 0;
              left: 0;
            }
          }
        }
      }
    }

    .video {
      .player {
        margin: 20rpx 0;
        box-sizing: border-box;
        height: 400rpx;
        background-color: #eee;
        border-radius: 14rpx;
        overflow: hidden;

        video {
          width: 100%;
          height: 100%;
        }
      }

      .desc {
        font-size: 28rpx;
        color: #000;
        margin-bottom: 10rpx;
      }
    }

    .problemAnswer {
      .problem {
        margin-top: 20rpx;
        padding: 20rpx;
        box-sizing: border-box;
        background-color: #eee;
        border-radius: 14rpx;
        background-color: #ffe3e3;

        .tit {
          font-size: 20rpx;
          padding: 6rpx 16rpx;
          background-color: #ff8787;
          font-weight: bold;
          color: #fff;
          display: inline-block;
          border-radius: 10rpx;
          margin-bottom: 10rpx;
        }

        .desc {
          font-size: 28rpx;
          color: #444;
        }
      }

      .answer {
        margin-top: 20rpx;
        margin-bottom: 20rpx;
        padding: 20rpx;
        box-sizing: border-box;
        background-color: rgba($color: $primary-color, $alpha: 0.2);
        border-radius: 14rpx;

        .tit {
          font-size: 20rpx;
          padding: 6rpx 16rpx;
          background-color: #20c997;
          font-weight: bold;
          color: #fff;
          display: inline-block;
          border-radius: 10rpx;
          margin-bottom: 10rpx;
        }

        .desc {
          font-size: 28rpx;
          color: #444;
        }
      }
    }


    .botton {
      display: flex;
      justify-content: space-between;

      .address {
        display: flex;
        background-color: #eee;
        padding: 10rpx 10rpx;
        align-items: center;
        border-radius: 8rpx;

        .icon {
          width: 22rpx;
          height: 22rpx;
          margin-right: 6rpx;
        }

        .name {
          line-height: 0;
          font-size: 20rpx;
        }
      }

      .right {
        flex: 1;
        display: flex;
        justify-content: flex-end;

        .clas {
          display: flex;
          align-items: center;
          margin-left: 30rpx;

          .icon {
            width: 32rpx;
            height: 32rpx;
            opacity: .7;
          }

          .num {
            color: #777;
            margin-left: 10rpx;
            font-size: 24rpx;
          }
        }
      }
    }

    .share {
      display: flex;
      justify-content: space-around;
      padding-top: 40rpx;

      .item {
        display: flex;
        align-items: center;
        position: relative;

        .icon {
          width: 44rpx;
          height: 44rpx;
        }

        .name {
          font-size: 24rpx;
          margin-left: 10rpx;
        }

        .sharebtn {
          width: 100%;
          height: 100%;
          opacity: 0;
          position: absolute;
        }
      }
    }
  }

  .comment {
    padding: 20rpx;
    box-sizing: border-box;

    .title {
      font-size: 28rpx;
      font-weight: bold;
      padding-bottom: 20rpx;
    }

    .box {
      .item {
        display: flex;
        margin-bottom: 20rpx;

        .avatar {
          width: 80rpx;
          height: 80rpx;
          margin-right: 20rpx;
          border-radius: 100%;
          overflow: hidden;

          image {
            width: 100%;
            height: 100%;
          }
        }

        .info {
          flex: 1;
          border-bottom: 1px solid #f8f8f8;
          padding-bottom: 20rpx;

          .nikename {
            display: flex;
            align-items: center;
            padding-bottom: 10rpx;

            .name {
              color: #666;
              font-size: 28rpx;
            }

            .lv {
              height: 28rpx;
              margin-left: 10rpx;
            }
          }

          .message {
            font-size: 28rpx;
            color: #000;
          }

          .botn {
            display: flex;
            margin-top: 10rpx;
            align-items: center;

            .time {
              font-size: 24rpx;
              color: #999;
            }

            .recall {
              font-size: 24rpx;
              color: #666;
              margin-right: auto;
              margin-left: 10rpx;
              font-weight: bold;
            }

            .zan {
              display: flex;
              align-items: center;
              padding-right: 10rpx;

              image {
                height: 32rpx;
                margin-right: 10rpx;

              }

              .num {
                color: #555;
                font-size: 32rpx;
              }
            }
          }

          .tips {
            padding-top: 10rpx;
            font-size: 24rpx;
            color: #999;

            text {
              font-weight: bold;
              color: #666;
            }
          }

          .second-level {
            display: flex;
            padding-top: 20rpx;

            .avatar {
              width: 54rpx;
              height: 54rpx;
            }



            .info {
              border: none;

              .nikename {
                display: flex;
                align-items: center;
                padding-bottom: 10rpx;

                .name {
                  color: #666;
                  font-size: 24rpx;
                }

                .lv {
                  height: 24rpx;
                  margin-left: 10rpx;
                }
              }

              .message {
                font-size: 24rpx;

              }

              .botn {
                display: flex;
                margin-top: 10rpx;
                align-items: center;

                .time {
                  font-size: 24rpx;
                  color: #999;
                }

                .recall {
                  font-size: 24rpx;
                  color: #666;
                  margin-right: auto;
                  margin-left: 10rpx;
                  font-weight: bold;
                }

                .zan {
                  display: flex;
                  align-items: center;
                  padding-right: 10rpx;

                  image {
                    height: 32rpx;
                    margin-right: 10rpx;

                  }

                  .num {
                    color: #555;
                    font-size: 32rpx;
                  }
                }
              }
            }
          }
        }
      }
    }

    .noData {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      // height: 20vh;
      // min-height: 400rpx;
      padding: 100rpx 0;

      image {
        width: 160rpx;
        opacity: .4;
      }

      view {
        font-size: 24rpx;
        color: #787878;
        margin-top: 80rpx;
      }
    }
  }

  .popupRely {

    // padding-bottom: 60rpx;
    // transition: all .33s ;

    background-color: #fff;

    .replyBox {
      display: flex;
      padding: 20rpx;
      padding-bottom: 20rpx;
      // background-color: #fff;
      border-top: 1px solid #f8f8f8;
      box-sizing: border-box;

      .left {
        flex: 1;
        padding-right: 20rpx;

        input {
          background-color: #f8f8f8;
          height: 30rpx;
          padding: 0 20rpx;
          box-sizing: border-box;
          border-radius: 12rpx;
          font-size: 28rpx;
          box-sizing: border-box;
          height: 80rpx;
        }
      }

      .right {
        .submit {
          background-color: $primary-color;
          color: #fff;
          border-radius: 12rpx;
          font-size: 26rpx;
          height: 80rpx;
          line-height: 80rpx;
          padding: 0 40rpx;
        }
      }
    }
  }
}

.more-list {
  padding: 30rpx;
  box-sizing: border-box;

  .title {
    text-align: center;
    font-size: 28rpx;
    font-weight: bold;
    color: #333;
    padding: 10rpx 20rpx;
    padding-bottom: 30rpx;
  }

  .box {
    // justify-content: sp;
    display: flex;

    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      // flex-basis: 25%;
      margin-right: 30rpx;

      .icon {
        width: 40rpx;
        height: 40rpx;
        background-color: #ddd;
        padding: 30rpx;

        border-radius: 100%;

        image {
          width: 100%;
          height: 100%;
        }

      }

      .txt {
        font-size: 26rpx;
        font-weight: bold;
        padding-top: 10px;
        color: #333;
      }
    }
  }

}